package org.luxor.common.netty.jdk.aio.client;

import java.io.IOException;

/**
 * Java原生：异步非阻塞I/O 客户端
 *
 * @author Mr.yan @date 2023/8/29
 */
public class TimeClient {

    public static void main(String[] args) throws IOException {
        int port = 8080;
        if (args != null && args.length > 0) {
            port = Integer.valueOf(args[0]);
        }
        String ip = "127.0.0.1";
        AsyncTimeClientHandler timeClient = new AsyncTimeClientHandler(ip, port);
        new Thread(timeClient, "AIO-TimeClient-001").start();
    }
}
